<?php
	error_reporting(E_ALL ^ E_NOTICE ^ E_WARNING);
	require_once 'include/inc.config.php';
	require_once WACT_ROOT.'common.inc.php';
	require_once WACT_ROOT.'controller/pathinfo.inc.php';

    require_once APP_CTRL_ROOT . 'adm/admin_controller.php';

	class MyAdminRootController extends RootAdminController {

		function MyAdminRootController() {
        	parent::RootAdminController();

            $this->addChild('index',   new Handle(APP_CTRL_ROOT . 'adm/site_layout/leftmenu/index.page.php|LeftMenuIndexPage'));
			$this->addChild('edit',   new Handle(APP_CTRL_ROOT . 'adm/site_layout/leftmenu/edit.page.php|LeftMenuEditPage'));
			$this->addChild('delete',   new Handle(APP_CTRL_ROOT . 'adm/site_layout/leftmenu/delete.page.php|LeftMenuDeletePage'));
			$this->addChild('create',   new Handle(APP_CTRL_ROOT . 'adm/site_layout/leftmenu/create.page.php|LeftMenuCreatePage'));
			$this->addChild('activate',   new Handle(APP_CTRL_ROOT . 'adm/site_layout/leftmenu/activate.page.php|LeftMenuActivatePage'));
    		$this->addChild('deactivate',   new Handle(APP_CTRL_ROOT . 'adm/site_layout/leftmenu/deactivate.page.php|LeftMenuDeactivatePage'));
    		$this->addChild('up',   new Handle(APP_CTRL_ROOT . 'adm/site_layout/leftmenu/up.page.php|LeftMenuUpPage'));  //order up
    		$this->addChild('down',   new Handle(APP_CTRL_ROOT . 'adm/site_layout/leftmenu/down.page.php|LeftMenuDownPage'));  //order down
    		//$Front->addChild('preview',   new Handle(APP_CTRL_ROOT . 'adm/site_layout/leftmenu/preview.page.php|LeftMenuPreviewPage'));  //preview

			$this->setDefaultChild('index');

		}

	}

    $Front =& new MyAdminRootController();
	$Front->start();

?>